<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		<link rel="stylesheet" href="css/mui.min.css" type="text/css" charset="utf-8" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">创建桌面快捷方式</h1>
		</header>
		<div class="mui-content">
			<button type="button" class="mui-btn mui-btn-blue mui-btn-block" onclick="fullscreen()">点击创建</button>
		</div>

		<script type="text/javascript" src="js/mui.min.js"></script>
		<script type="text/javascript">
			plus.ready(function(e) {});

			function fullscreen() {
				plus.navigator.createShortcut({
					name: "我的APP",
					icon: "img/ui.png"
				}); //注意换成自己的名字和图标
				plus.nativeUI.toast("创建成功!");
			}
		</script>
	</body>

</html>